package kz.kstu.scantest.facade.ejb.impl;

import kz.kstu.scantest.business.entity.guide.School;
import kz.kstu.scantest.business.server.api.GuideService;
import kz.kstu.scantest.facade.ejb.api.GuideFacade;

import javax.ejb.Stateless;
import java.util.List;

/**
 * @author Filipp_Stankevich
 *         created: 26.07.11 19:55
 */
@Stateless
public class GuideFacadeBean extends AbstractFacadeBean implements GuideFacade{


    @Override
    public List<School> findSchools() {
        return getService(GuideService.class).findSchools();
    }

    @Override
    public School saveSchool(School school) {
        return getService(GuideService.class).saveSchool(school);
    }

    @Override
    public void removeSchool(School school) {
          getService(GuideService.class).removeSchool(school);
    }
}
